<!DOCTYPE html>
<html xmlns:th="http://www.w3.org/1999/xhtml">
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="produceTaskId" name="produceTaskId" th:value="${produceTask.produceTaskId}"  type="hidden">
							<div class="form-group">	
								<label class="col-sm-3 control-label">批次号：</label>
								<div class="col-sm-8">
									<input id="batchNo" name="batchNo" th:value="${produceTask.batchNo}" class="form-control" type="text">
								</div>
							</div>
														<!--<div class="form-group">	-->
								<!--<label class="col-sm-3 control-label">生产类型：</label>-->
								<!--<div class="col-sm-8">-->
									<!--<input id="produceType" name="produceType" th:value="${produceTask.produceType}" class="form-control" type="text">-->
								<!--</div>-->
							<!--</div>-->
							<div class="form-group">
								<label class="col-sm-3 control-label">生产计划：</label>
								<div class="col-sm-8">
									<input id="producePlan" name="producePlan" th:value="${produceTask.producePlan}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">生产车间：</label>
								<div class="col-sm-8">
									<input id="workshop" name="workshop" th:value="${produceTask.workshop}" class="form-control" type="text">
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">产品：</label>
								<div class="col-sm-4">
									<select id="productId" name="productId"  class="form-control">
									</select>
								</div>
								<div class="col-sm-4 input-group">
									<input type="text" id="productName" class="form-control" placeholder="搜索产品名称">
									<span class="input-group-btn"> <button type="button" class="btn btn-primary" onclick="getProductByUpdate()">搜索
								    </button> </span>
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">生产班组：</label>
								<div class="col-sm-4">
									<select id="marshalling" name="marshallingId"  class="form-control">
									</select>
								</div>
								<div class="col-sm-4 input-group">
									<input type="text" id="marshallingName" class="form-control" placeholder="搜索生产班组">
									<span class="input-group-btn"> <button type="button" class="btn btn-primary" onclick="getMarshallingByUpdate()">搜索
								    </button> </span>
								</div>
							</div>
														<div class="form-group">	
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
									<input id="mark" name="mark" th:value="${produceTask.mark}" class="form-control" type="text">
								</div>
							</div>
																					<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" th:inline="javascript">
        function getMarshallingId() {
            var typeId = [[${produceTask.marshallingId}]]
            return typeId;
        }

        function getProductId() {
            var typeId = [[${produceTask.productId}]]
            return typeId;
        }
	</script>
	<script type="text/javascript" th:src="@{/js/appjs/produce/produceTask/edit.js}" src="/js/appjs/produce/produceTask/edit.js">
	</script>
</body>
</html>
